package org.elec.mac.constants;

import okhttp3.WebSocket;
import org.elec.mac.entity.GizToken;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by Bean on 2017/5/10.
 */
public class Constants {

    /**
     * Session标记
     */
    public final static String SESSION_USER_KEY = "sessionUser";

    /**
     * 超级管理员标示
     */
    public final static String SYSTEM_ADMIN = "admin";

    /**
     * 默认首页
     */
    public final static Integer PAGE_NUM_DEFAULT = 1;

    /**
     * 默认分页大小
     */
    public final static Integer PAGE_SIZE_DEFAULT = 10;

    /**
     * Token令牌
     */
    public final static String TOKEN_KEY = "tokenCache";

    /**
     * 是否有效-是
     */
    public final static Integer IS_VALID_TRUE = 1;

    /**
     * 是否有效-否
     */

    public final static Integer IS_VALID_FALSE = 0;

    /**
     * 火星坐标系
     */
    public final static String GCJ02 = "GCJ02";

    /**
     * 国际坐标系
     */
    public final static String WGS84 = "WGS84";

    /**
     * 百度坐标系
     */
    public final static String BD09 = "BD09";

    /**
     * 线程锁
     */
    public static Map<String, String>  threadPool = new HashMap<>();

    /**
     * Long转换错误默认值
     */
    public final static Long UnknowLong = -999999999L;

    /**
     * Integer转换错误默认值
     */
    public final static Integer UnknowInteger = -999999999;

    /**
     * 机智云登录API
     */
    public static GizToken gizToken = new GizToken();

    /**
     * 机智云登录WebSocket对象
     */
    public static WebSocket webSocket = null;
}
